<template>
    <div>
        <van-cell @touchstart.native.stop="show = true">弹出默认键盘</van-cell>
        <van-number-keyboard
                :show="show"
                @blur="show = false"
                @input="onInput"
                @delete="onDelete"
        />
    </div>
</template>

<script>
    import Vue from 'vue';
    import { NumberKeyboard } from 'vant';
    import { Toast } from 'vant';
    Vue.use(NumberKeyboard);
    export default {
        data() {
            return {
                show: true,
            };
        },
        methods: {
            onInput(value) {
                Toast(value);
            },
            onDelete() {
                Toast('删除');
            },
        },
    };
</script>

<style scoped>

</style>